import 'package:json_annotation/json_annotation.dart';
import 'EcyGoodsCartItemModel.dart';
part 'EcyGoodsCartListModel.g.dart';

@JsonSerializable()
class EcyGoodsCartListModel {
  int? totalPrice;
  int? total;
  bool? selectAll;
  bool? editing;
  List<EcyGoodsCartItemModel>? records;
  EcyGoodsCartListModel(this.totalPrice, this.total, this.selectAll,
      this.records, this.editing);

  // 从JSON创建User实例的工厂方法
  factory EcyGoodsCartListModel.fromJson(Map<String, dynamic> json) =>
      _$EcyGoodsCartListModelFromJson(json);

  // 将User实例转换为JSON的方法
  Map<String, dynamic> toJson() => _$EcyGoodsCartListModelToJson(this);
}
